package com.weihui.jxc.service.impl;

import java.util.List;

import com.weihui.jxc.dao.OutportDao;
import com.weihui.jxc.model.InAndOut;
import com.weihui.jxc.model.InAnOutInfo;
import com.weihui.jxc.service.InportService;
import com.weihui.jxc.service.OutportService;
/**
 * 入库的业务实现类
 * @author xiaowei
 *
 */
public class OutportServiceImpl implements OutportService{
	OutportDao outportDao;
    /**
     * 获取入库单号
     */
	@Override
	public String getInportId() {
		outportDao = new OutportDao();
		return outportDao.getId();
	}
	/**
	 * 入库
	 */
	@Override
	public boolean saveInport(InAndOut i) {
		outportDao = new OutportDao();
		return outportDao.save(i);
	}
	/**
	 * 查询入库信息
	 */
	@Override
	public List<InAnOutInfo> queryAll(InAnOutInfo i) {
		outportDao = new OutportDao();
		return outportDao.queryAll(i);
	}

}